code: public boolean isPermissionGranted(String permission) {
          List<String> grantedPermissions = getPermissions();
          if (grantedPermissions != null) {
              return grantedPermissions.contains(permission);
          }
          return false;
      }
docs: <p>
  Returns whether a particular permission has been granted
  </p>
  
  @param permission The permission to check for
  @return true if the permission is granted, false otherwise