main/core/Manager/HomeManager.php
public function typeExist($name)
    {
        $type = $this->type->findOneBy(['name' => $name]);

        if (is_object($type)) {
            return true;
        }

        return false;
    }
public function typeExist($name)
    {
        $type = $this->type->findOneBy(['name' => $name]);

        if (is_object($type)) {
            return true;
        }

        return false;
    }
public function typeExist ( $ name ) { $ type = $ this -> type -> findOneBy ( [ 'name' => $ name ] ) ; if ( is_object ( $ type ) ) { return true ; } return false ; }
Verify if a type exist.

@param string $name

@return bool
Verify if a type exist .