FREEPBX-8052 check empty then check match