check if params is null