I tried this but I don't think it's correct as it didn't work.
Code:
else{
$stmt = $adopts->query("SELECT * FROM ".constant('PREFIX')."owned_adoptables WHERE name='{$more}'");
$row = $stmt->fetchObject();
if(!is_object(strcmp($row))){
// The name has not yet been used, we are good to go!