avoid 'Notice: Array to string conversion' message when something doesn't works