Colon not allowed after if in ruby19

if (): is an old syntax allowed in ruby 1.8, but not in 1.9. This patch ensures the code is ruby 1.9 - compatible.