I don't think so, this function would return false if the user is visiting his own profile friend's page and has not the permission 'view member friends'.