strict type comparison for checking current selection when rendering form elements