added a method that helps to decide if a type is already defined or not
astyle