Replace array_key_exists by isset