replace contain? by predefined method member