Method contains() has refactored.