$user->exists()

Checks if the user exists

  • return (boolean)

Example

<?php if($site->user('bastian')->exists()) {
    echo $site->user('bastian')->role();
}
?>