check if a 2nd parameter is provided