This should be:
case Props of
    [] -> 'undefined';
    Headers -> Headers
end;

I know the length of this list is small, but its good practice to not take the length of the list ( O(n) operation in Erlang) when you just want to see if it is empty or not.