added comparison operator to type "Optional"