use is_a instead of string comparison for interface check

In my PHP 5.5.3 system, this check failed because class_implements returned '\Dwoo\ITemplate' instead of 'ITemplate'.

I changed it to use the more appropriate is_a() function that PHP supplies for exactly this purpose, I expect it will work with PHP 5.4 as well