Adding functions exists(), isDirectory(), isRegular(), and isLink().