removed (array), changed if (null === $content) { to if (!$data) {