updated condition check to treat installed the same as present