index() returns null in 3.4, this works in all versions of sass.