Added the array_key_exists_then_or helper method