Argument check at the beginning