added null check to Arrays.isEmpty and Arrays.hasElements for consistency
added null check to Arrays.isEmpty and Arrays.hasElements for consistency

0b1kn00b/thx.core,fponticelli/thx.core,andywhite37/thx.core,mlms13/thx.core