`COUNT(*) > 0` is the fastest way to know if there is a match or not. Don't forget that `number` is an index so this query doesn't even reach the actual table.