useless isset()&&!empty(); thanks @fabienwang