Cannot read property 'includes' of undefined