true ], 'objects' ); $loaded = []; if ( ! empty( $taxonomies ) && is_array( $taxonomies ) ) { foreach ( $keys as $key ) { if ( isset( $taxonomies[ $key ] ) ) { $loaded[ $key ] = $taxonomies[ $key ]; } else { $loaded[ $key ] = null; } } } return $loaded; } }