Deleted extra if

Signed-off-by: kecinzer <kecinzer@gmail.com>