public function resourceExists($resource)
    {
        $resources = $this->getAvailableResources();
        foreach ($resources as $res) {
            if ($res->slug == $resource) {
                return true;
            }
        }
        return false;
    }
public function resourceExists($resource)
    {
        $resources = $this->getAvailableResources();
        foreach ($resources as $res) {
            if ($res->slug == $resource) {
                return true;
            }
        }
        return false;
    }
public function resourceExists ( $ resource ) { $ resources = $ this -> getAvailableResources ( ) ; foreach ( $ resources as $ res ) { if ( $ res -> slug == $ resource ) { return true ; } } return false ; }
Checks if the given resource exists in Transifex project

@param string $resource
@return bool
Checks if the given resource exists in Transifex project