added AND !is_singular('') to the end after OR statements

Signed-off-by: schnnmbr <sachingopalakrishnan@gmail.com>