The test method is best used for file checking with bash conditionals
test
if test("[ -f /tmp/foo ]") # do stuff end