this comparison os not required to avoid NullPointerException?