Removing 'false' values from dictionary params