- removed unused import
 - refactored exists to contains