fixed PHP error when construct option is empty