replace is_null with isset for better performance

ref: [is-null docs](http://php.net/manual/en/function.is-null.php#84161)