added f::exists() method to file class