public function byUsernameOrEmail($usernameOrEmail) {
    if (filter_var($usernameOrEmail, FILTER_VALIDATE_EMAIL)) {
      return $this->byEmail($usernameOrEmail);
    }

    return $this->byUsername($usernameOrEmail);
  }