Check property $alerts on empty

We should check property on empty because property is exist