Guard against potential NPE