Update Session.php

Handle PHP versions < 5.4 when checking if sessions is active.