public function isConversationExists($userId)
    {
        if (empty($userId)) {
            return false;
        }

        $user = $this->getSerializeUser($this->authUserId, $userId);

        return $this->conversation->isExistsAmongTwoUsers($user['one'], $user['two']);
    }
public function isConversationExists($userId)
    {
        if (empty($userId)) {
            return false;
        }

        $user = $this->getSerializeUser($this->authUserId, $userId);

        return $this->conversation->isExistsAmongTwoUsers($user['one'], $user['two']);
    }
public function isConversationExists ( $ userId ) { if ( empty ( $ userId ) ) { return false ; } $ user = $ this -> getSerializeUser ( $ this -> authUserId , $ userId ) ; return $ this -> conversation -> isExistsAmongTwoUsers ( $ user [ 'one' ] , $ user [ 'two' ] ) ; }
make sure is this conversation exist for this user with currently loggedin user.

@param int $userId

@return bool|int
make sure is this conversation exist for this user with currently loggedin user .