Fixed use of empty() with an old php version.