A decorator can be a functionality that will take a purpose being an argument and returns a closure. The closure is a set of internal capabilities and totally free variables. I will never down vote but urge Devs to consider this as an alternative to have null / empty checks https://whitelandgurugram.co.in/