You don't need the if with a default case, can you remove this condition?