Java Check If Array Contains An Element With One Atom