Empty deployment list made the operator to crash as the condition check was checking if the value at the 0th location is nill wich fails in case of empty list. Updated it to check length of list not equals 0. Signed-off-by: rohan47 <rohgupta@redhat.com>