using empty() on a bunch of variables to help prevent undefined index issues