public function isNameAvailable( $name, $fields = array() )
    {
        $fields = (object) $fields;

        return ! $this->getMapper()
                      ->isNameExists(
                            $name .
                            ( empty( $fields->type ) ? '' : '.' . $fields->type )
                        );
    }
public function isNameAvailable( $name, $fields = array() )
    {
        $fields = (object) $fields;

        return ! $this->getMapper()
                      ->isNameExists(
                            $name .
                            ( empty( $fields->type ) ? '' : '.' . $fields->type )
                        );
    }
public function isNameAvailable ( $ name , $ fields = array ( ) ) { $ fields = ( object ) $ fields ; return ! $ this -> getMapper ( ) -> isNameExists ( $ name . ( empty ( $ fields -> type ) ? '' : '.' . $ fields -> type ) ) ; }
Find a structure is available

@param   string          $name
@param   array|object    $fields [optional]
@return  bool
Find a structure is available