this function will return wrong results in case used in improper way.

In case a developer directly use this function (or want to use this function) without checking if $this -> session == null , this function directly returns FALSE, which is wrong in case it has timed out.
So this should return true in case $this->session = null ,I dont think that results in any such cases

similarly for function expireTimeout()

have a look please