Fixed a bug where we weren't checking if a variable was empty before using it