public function has(User $user)
    {
        return $this->entries->exists(
            function ($key, $entry) use ($user) {
                return $entry->getUser()->getId() === $user->getId();
            }
        );
    }
public function has(User $user)
    {
        return $this->entries->exists(
            function ($key, $entry) use ($user) {
                return $entry->getUser()->getId() === $user->getId();
            }
        );
    }
public function has ( User $ user ) { return $ this -> entries -> exists ( function ( $ key , $ entry ) use ( $ user ) { return $ entry -> getUser ( ) -> getId ( ) === $ user -> getId ( ) ; } ) ; }
Return true if one of the entry is related to the given user

@param  User    $user
@return boolean
Return true if one of the entry is related to the given user