/**
  * Checks is current session authenticated.
  * @return boolean
  */
 public function isAuthenticated()
 {
     return $this->httpSession->getAttribute(self::USER_ID) && $this->httpSession->hasAttribute(self::SOCIAL_NETWORK);
 }