added iconExists functionality

changed rules to add iconExists functionality