Check for !empty() on includeSubclasses so you don't get an undefined notice