How can i echo "You do not have any friends yet." like on the ALL Friends (Page) when you have no friends on your friends list.
foreach ($listOfFriends as $friend) {
if( $friend->isOnline( ) ) {
echo "Echo users online ";
} elseif ( $friend->getPermalink( ) ) {
echo "Grabs offline users link";
} elseif (No FRIENDS YET SO LETS DO THIS HELPPPPPP() ) {
echo "You do not have any friends yet.";
}
}
$user = FD::user();
$total = $user->getTotalFriends();
if (empty($total)) {
echo "You do not have any friends yet.";
}