Checking parameters to set method