Add check if mysql result contained any rows