Shouldn't there be an array_key_exists check?