Safer $return variable dealing