Check if lookup result null to avoid NPE