fix checking for empty icon