use !empty instead of isset