My logic is the second check should not be made *at all* if the first fails due to session not started. PHP version is required here because the first `if` is precise under PHP 5.4.