So, I have one function that returns an array.map, and this map should return null or one of two elements (has to be them because they are part of a parent component outside