/**
  * Return only available protection types.
  * 
  * @see RublonRolesProtection::getProtectionTypes()
  * @return array
  */
 static function getAvailableProtectionTypes()
 {
     $types = RublonRolesProtection::getProtectionTypes();
     foreach ($types as &$type) {
         if (!self::isProtectionTypeAvailable($type)) {
             $type = null;
         }
     }
     return array_filter($types);
 }