Properly check for a given $templates array and its values