Use is_empty_array
Change the error message for forbidden switches
Add a period to the warning