If stupidity was painful, I'd be doing a lot of screaming. I was attempting to call the function, not check the result against anything. When I used
Code:
$match = checkUserDb($user);
everything worked fine.
For all the other newbs out there :D
If only stupidity was painful...