if controller data is defined make sure its a function

see #962

But if it's not defined, don't suddenly define it!