Tried to implement ContainsDof, but thats computationally bad and pain.