Added optional color to hasColor function.
Added conditional check to Program model.