A decorator is a purpose that usually takes a purpose as an argument and returns a closure. The closure is a list of internal functions and free variables. I will not down vote but urge Devs to think about this as an alternative to have null / empty checks with https://smartworlddeveloper.co.in/