isGuest() function. It is also dependent on the current user session.
It returns true when a user session is active or logged in.
if( isUser() ) {
//session is active
}
init file and the database file dbconfig.php
must be properly configured along with the Session configuration system for this
function to work effectively.