Regarding the null or empty, I suggest to create a...
# suitescript
i
Regarding the null or empty, I suggest to create a common isNullOrEmpty function. It's probably the most used func in all the scripts.