Fix undefined $_SESSION error when calling Session::check

If you call session::check() before a session has been started you get a undefined variable $_SESSION error.