Fix if statement in checkParams()