How can I hide fields if option is empty?