src/Service/Refiller.php
public function isCanSearch(Item $item, $field)
    {
        if (!in_array($field, $this->supported_fields)) {
            return false;
        }
        if ($this->isCanRefill($item, $field) || $item->getName()) {
            return true;
        }
        /* @var $name \AnimeDb\Bundle\CatalogBundle\Entity\Name */
        foreach ($item->getNames() as $name) {
            if ($name->getName()) {
                return true;
            }
        }

        return false;
    }
public function isCanSearch(Item $item, $field)
    {
        if (!in_array($field, $this->supported_fields)) {
            return false;
        }
        if ($this->isCanRefill($item, $field) || $item->getName()) {
            return true;
        }
        /* @var $name \AnimeDb\Bundle\CatalogBundle\Entity\Name */
        foreach ($item->getNames() as $name) {
            if ($name->getName()) {
                return true;
            }
        }

        return false;
    }
public function isCanSearch ( Item $ item , $ field ) { if ( ! in_array ( $ field , $ this -> supported_fields ) ) { return false ; } if ( $ this -> isCanRefill ( $ item , $ field ) || $ item -> getName ( ) ) { return true ; } /* @var $name \AnimeDb\Bundle\CatalogBundle\Entity\Name */ foreach ( $ item -> getNames ( ) as $ name ) { if ( $ name -> getName ( ) ) { return true ; } } return false ; }
Is can search.

@param \AnimeDb\Bundle\CatalogBundle\Entity\Item $item
@param string                                    $field

@return bool
Is can search .