@fiss_cmd<EOL>def space_exists(args):
<EOL>try:<EOL><INDENT>r = fapi.get_workspace(args.project, args.workspace)<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL>exists = True<EOL><DEDENT>except FireCloudServerError as e:<EOL><INDENT>if e.code == <NUM_LIT>:<EOL><INDENT>exists = False<EOL><DEDENT>else:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>if fcconfig.verbosity:<EOL><INDENT>result = "<STR_LIT>" if not exists else "<STR_LIT>"<EOL>eprint('<STR_LIT>' %<EOL>(args.workspace, result, args.project))<EOL><DEDENT>return exists<EOL>
Determine if the named space exists in the given project (namespace)