Check parent state in Smart Search Category plugin