fix php error occurring at install. empty() expects a variable