Is it safe to return an optional stack value?