Check for optional param and set to default