Make that:
`} elseif ($page === 1 && count($results) < $limit) {`