PHP: check mysql table exists