Use a different name of the method to check if sanitize is enabled in check task.