Java Check If Array Is Null Or Not Like