Compare database result with ===

Compare result from database query with three equal signs (===) to make
sure the result returned is a boolean.