It might be shorter to do array_key_exists on $_SERVER['HOME'], would keep the expression shorter