Java Array Check If Element Is In Dictionary