implemented ifnotnull special form in Scala