That would reverse the condition. Correcting to `if template_path.nil? || !File.exists?(template_path)`