use !empty() to check variable