This should do the trick?
```js
if (!layout.alt)
  return false;
 
return (value in layout.alt);
```