If $(2 + \sin x)\dfrac{dy}{dx} + (y + 1)\cos x = 0$ and $y(0) = 1$, then $y\left(\dfrac{\pi}{2}\right)$ is equal to
(1) $\dfrac{1}{3}$
(2) $-\dfrac{2}{3}$
(3) $-\dfrac{1}{3}$
(4) $\dfrac{4}{3}$
If $(2 + \sin x)\dfrac{dy}{dx} + (y + 1)\cos x = 0$ and $y(0) = 1$, then $y\left(\dfrac{\pi}{2}\right)$ is equal to\\
(1) $\dfrac{1}{3}$\\
(2) $-\dfrac{2}{3}$\\
(3) $-\dfrac{1}{3}$\\
(4) $\dfrac{4}{3}$