is the null check necessary?