check if params in index-action is a function