public static function isValidType($type)
    {
        if ($type === '') {
            $result = true;
        } else {
            $valid = self::getTypesInfo();
            $result = isset($valid[$type]);
        }

        return $result;
    }
public static function isValidType($type)
    {
        if ($type === '') {
            $result = true;
        } else {
            $valid = self::getTypesInfo();
            $result = isset($valid[$type]);
        }

        return $result;
    }
public static function isValidType ( $ type ) { if ( $ type === '' ) { $ result = true ; } else { $ valid = self :: getTypesInfo ( ) ; $ result = isset ( $ valid [ $ type ] ) ; } return $ result ; }
Check if a term type is valid.

@param string $type

@return bool
Check if a term type is valid .