I know I could use angular.isFunction here, but it doesn't seem that ueful