This check is pointless

Catch null query with PDO exception instead