Java Check If Array Contains An Element With Atomic Number