Check variable if explode-able in PHP

use explode itself to see if it is explodable

$a = explode(" ","Where Am I?");
if(count($a)>1) {
     echo "explodable";
}
else {
     echo "No use of exploding";
}

or

if(strpos($row['city'], ' ') !== false) {
  // explodable
} else {
  // not explodable
}