use isset instead of is_null
Merge pull request #45 from kafene/master

use isset instead of is_null