Improved the select options HTML helper function.

We now check if the first argument $groups is an array.
Output error if there is one.
Added has_error() helper function.
Improved setting the WP_Error on an iDEAL error.