in reply to Templates array grep?

have you considered testing the return code with eq or a regex?