Create predicate method for option