Updating Model.updateAttribute to behave like updateAttributes

...if function, call function with value as argument