Added new convenience function for checking an options value