/** * check if email is provided * * @param User $user * @param string $email * @return bool */ protected function isEmailAlreadyInUsed(User $user, $email) { $found = $user->with(array())->where('email', $email)->first(); return $found ? true : false; }