#NEWLINE# def is_enabled( self , paths = [ ] , group = ( - 1 ) , index = ( - 1 ) ) : #NEWLINE# #INDENT# 'Check if command is enabled.' #NEWLINE# return ( ( get_target ( paths , group , index ) is not None ) if ( len ( group ) or ( index != ( - 1 ) ) ) else True )