Small bug fix

Used errors' `is_empty()` instead of php's `empty()`. Now it has the correct behavior.