Turned references into pointers to be able to compare to nullptr with clang