Throw error if attempting to store function or not enough params