Removed uncessary condition in detectTransformProperty