There's no need for you to do checks like this in your own private functions.  These types of checks should only happen at the top of public prototype functions.  Remove all of the extra ones.