default boolean hasPermission(String permission) {
        return checkPermission(permission).asBoolean();
    }
Checks for a permission.

@param permission the permission
@return the result
forge/forge-api/src/main/java/me/lucko/luckperms/forge/capabilities/UserCapability.java