Could you change the !empty() to an isset() please