PR for dev_1.0

Logic for this function can be changed to:
```php
function is_logged_in()
{
    return ($_SESSION["id"]);
}
```