refactor out the option equivalence check to a separate function for better organization / readability.