corrected syntax

Corrected syntax because empty() cannot wrap a function or method