Switched from is_a() to instanceof.
Instanceof is about 2x faster than is_a()
Removed unused template file