empty is a construct and cannot be used as a function in older versions of php