diff --git a/binarycpython/utils/functions.py b/binarycpython/utils/functions.py
index c1ad1f771a801d9f10c36446e27755d0c134ebd1..c73091b424fa0b0bf91df2fd4ab53ee0d3b18e9b 100644
--- a/binarycpython/utils/functions.py
+++ b/binarycpython/utils/functions.py
@@ -460,8 +460,10 @@ def output_lines(output: str) -> list:
         Iterator over the lines of the binary_c output
     """
 
-    return output.splitlines()
-
+    if output:
+        return output.splitlines()
+    else:
+        return []
 
 def example_parse_output(output: str, selected_header: str) -> dict:
     """