Different checks to do the same thing... USELESSNESS
Fixed NPE with format