Correct parameter check order, closes #33.