changed ternary operator to if block due to swig support
Merge pull request #55 from kellyrmilligan/swigTemplatesErrorHomepage

changed ternary operator to if block due to swig support