fixed mysqli connection check