Added check for classList functions