How to check if path or file exist in Scala

How do I check if a path / file exists in Scala similar to Python ? An example below: os.path.exists("/home") Out[4]: True