checkRedundantParams: qualify variable type as optional