Fixed bug when path was not found for .exists

There was no length if there was no match