Added extensions for the Optional class.