private function checkEmail(Segment $segment, $email)
    {
        $user = $this->usersRepository->findBy('email', $email);
        if (!$user) {
            return false;
        }
        return $segment->isIn('email', $email);
    }
private function checkEmail(Segment $segment, $email)
    {
        $user = $this->usersRepository->findBy('email', $email);
        if (!$user) {
            return false;
        }
        return $segment->isIn('email', $email);
    }
private function checkEmail ( Segment $ segment , $ email ) { $ user = $ this -> usersRepository -> findBy ( 'email' , $ email ) ; if ( ! $ user ) { return false ; } return $ segment -> isIn ( 'email' , $ email ) ; }
checkEmail verifies whether user with given email is member of provided segment.

@param Segment $segment
@param $email
@return bool
checkEmail verifies whether user with given email is member of provided segment .