Changed condition to deprecation