brought And statement before OR

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