Avoiding possible NPE