Updated checkPOIs function in processor module to return a POI[]