Used method overloading by changing both names to checkForNull()