Updated comment
Added if(count() > 1 ) around option blocks in the form as when there would be only one option, no choice is available ;-)