I'll add  rescue since any file system access could raise an exception and it will protect the method from unexpected use cases.