You can remove the || empty(...) cause it's not good and getIsset() do the empty() test in it ;-)