You dont need isset and ! empty(), they are doing the same thing in this scenario. Just use ! empty()