Remove use of Try and just check isSetOptional