refactor out valid_option? method