Use idiomatic arg length check in propertyFunction

fixes #93 

@jish