more robust check for parsed ways