Use two methods to do two different things

Checking the parameters nullness to determine the function to perform is
a bad practice.