check if data.fens exists before iterating over it