helpers: Add contains function.