Validating parameter arguments, would previously crash later if they were null (which is valid).