perhaps array_key_exists might work