Shortened the implementation of operator == for Optional class