Adding convenience function validOption()