Adding a check for the new methods in the session object before trying to actually use it.