Issue 16: Remove has_variable from template

Replaced each instance of "if has_variable?" with "unless
@variable.nil?"
Merge pull request #21 from Element84/FixHasVariable

Fix for issue 16