NULLified, doQuery fixed,

Changed all lowercase null to uppercase NULL
Changed the "NULL !== var" check to "(!)is_null()"
Checked if the request succeeds and return true accordingly
Deleted var_dump() #123