Added is_array() condition before creating the form to avoid a type error when using the extension out-of-the-box without any config