Using empty over isset as per comment on 4d07aa92