validate parse method arguments