WIP: added exists method implementation for file and/or dir