Check the parent category when checking the child category