Returning a value only if not void