Additional check to prevent null pointers.