changing 'empty' for 'isset' test