public static function getPreviousCompat($e, $default = null) { if (self::$is_php53) { return $e->getPrevious(); } elseif ($e instanceof self) { return $e->_previous; } return $default; }