implement has method on array