Recreation of Ruby's .include method