Changed conditional to UIColor dependence.