Use only one condition instead of two nested ones
Merge pull request #3 from greenalto/simplify_template

Use only one condition instead of two nested ones