Convert check to validateArgument in server methods.