check that param actually exists