Checks whether the
sessionPolicy
of this instance is set.
false if the sessionPolicy is null. Otherwise, it returns true.