Simple standalone parameter-checking functions