After changing this:
if (count($errors) && is_array($errors)) {
to
if (is_array($errors) && count($errors)) {
Not changed anything. I still get this error "Fout opgetreden tijdens het verzenden van uw bericht."
Which means: An error occurred while sending your message.