Use a default value of not null
A default value of null or “” is not easily searchable in log, use a searchable value instead of empty.
Do write a “else” while there is a “if”
Even you just concern the “if” condition, do write a “else” statement which may just print a string.