Fixed return value for get_template_names() method