Added 'empty' as a template method.