$singleItem is a boolean variable

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>