outsourced checkAllParameters method