public function hasClient(\Newscoop\GimmeBundle\Entity\Client $client) { if ($this->clients->contains($client)) { return true; } return false; }