null check for leaf icon