use empty instead of isset, this way an empty string is also considered null
changed to if false !
Merge pull request #857 from robkorv/patch-2

use empty instead of isset, this way an empty string is considered null
Merge branch 'hotfix/857'

Close #857