fix for checking if key in options