/**
 * Check if the user is from with other user
 *
 * @param $guid 'guid' of user
 *        $friend guid of other user
 *
 * @return bool
 */
function ossn_user_is_friend($guid, $friend)
{
    $friends = new OssnUser();
    if ($friends->isFriend($guid, $friend)) {
        return true;
    }
    return false;
}