Rewrote duplicate check with moar functional codez. Because I can