Checking if $this->session is set before using it in some calls
Merge branch 'release-v0.5' of github.com:plainmade/nilai into release-v0.5