get ready to work out if something is a folder or not