IMO this is useless since it will throw an NPE anyway the check is obsolet