Removes empty parameters from functions