Updated checks for invalid parameters to safe replace