fixed: issue on using array_key_exists