Exhaustive check to avoid NullPointerException's.