diff --git a/MotorBoat/MotorBoat/BoatGenericCollection.cs b/MotorBoat/MotorBoat/BoatGenericCollection.cs
index 3ea5a6c..55440ec 100644
--- a/MotorBoat/MotorBoat/BoatGenericCollection.cs
+++ b/MotorBoat/MotorBoat/BoatGenericCollection.cs
@@ -67,7 +67,7 @@ namespace MotorBoat.Generics
///
public static bool operator +(BoatsGenericCollection collect, T? obj)
{
- if (obj == null || collect == null)
+ if (obj != null && collect != null)
{
collect._collection.Insert(obj);
return true;
@@ -83,7 +83,7 @@ namespace MotorBoat.Generics
///
public static T? operator -(BoatsGenericCollection? collect, int pos)
{
- T? obj = collect._collection[pos];
+ T? obj = collect?._collection[pos];
if (obj != null && collect != null)
{
collect._collection.Remove(pos);